package com.lemon.security.properties;

import com.lemon.core.factory.YamlPropertySourceFactory;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 李猛
 * @datetime 2024/2/15 2:03
 * @description 类对象
 */
@Getter
@Setter
@Component
@PropertySource(value = "classpath:jwt-config.yml", factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "jwt")
public class JwtConfigProperties {
    //请求头
    private String header;
    //密钥
    private String secret;
    //超时时间
    private Integer expireTime;
    //放行的接口
    private List<String> passInterface;
}
